{
  "targets": [
    {
      "cflags_cc": ["-std=c++17"],
      "xcode_settings": {
        "OTHER_CPLUSPLUSFLAGS": ["-std=c++17", "-stdlib=libc++"],
        "GCC_ENABLE_CPP_EXCEPTIONS": "YES"
      },
      "target_name": "imageflip",
      "cflags!": ["-fno-exceptions"],
      "cflags_cc!": ["-fno-exceptions"],
      "sources": ["imageflip.cpp"],
      "include_dirs": [
        "<!@(node -p \"require('node-addon-api').include\")",
        "/usr/include/ImageMagick-7"
      ],
      "libraries": [
        "-lMagick++-7.Q16HDRI",
        "-lMagickWand-7.Q16HDRI",
        "-lMagickCore-7.Q16HDRI"
      ],
      "defines": ["NAPI_DISABLE_CPP_EXCEPTIONS",
        "MAGICKCORE_QUANTUM_DEPTH=16",
        "MAGICKCORE_HDRI_ENABLE=1"],
      "xcode_settings": {
        "GCC_ENABLE_CPP_EXCEPTIONS": "YES"
      }
    },
  ]
}